package com.teatrace.web.msg;

import java.io.IOException;
import java.util.Properties;

import org.apache.log4j.Logger;


public class Msg {
	
	private static final Logger log = Logger.getLogger(Msg.class);

	private static Properties resources = new Properties();
	
	static {
		try {
			resources.load(Msg.class.getClassLoader().getResourceAsStream("msg.properties"));
		} catch (IOException e) {
			log.error(e.getMessage(), e);
		}
	}
	
	public static String getResource(String key) {
		return resources.getProperty(key);
	}
}
